package test_314;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张杰
 * Date: 2022-03-14
 * Time: 21:45
 */
class OutClass {
    public int data1 = 1;
    private int data2 = 2;
    public static int data3 = 3;

    //实力内部类：可以当做是外部类的一个实例的成员
    class InnerClass {

    }
    public void func1() {
        System.out.println("OuterClass::func1()");
    }
}

public class TestDeno2 {

    //本地类
    /*public void func() {
        class Test {
            public int a;
        }
        //缺点：只能在当前方法中使用
    }*/



}
